package com.partner.control;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.partner.response.TestYearResponse;
import com.partner.service.TestYearService;

/**
 * 考研年份控制器
 * @author Jinshuan
 *
 */
@Controller
public class TestYearAction {
	TestYearService testYearService = new TestYearService();
	@RequestMapping("/getTestYear")
	public @ResponseBody TestYearResponse getAllTestYear(){
		TestYearResponse testYearResponse = new TestYearResponse();
		if(testYearService.getAllTestYear()!=null){
			testYearResponse = testYearService.getAllTestYear();
		}
		System.out.println(testYearResponse.getCode());
		return testYearResponse;
	}
}
